package com.mk.common.clone;

import java.util.Date;


/**
 * 实体
 * @author 上官雅晴
 *
 */
public class Car implements Cloneable{
	
	private String id;
	private double weight; //车重
	private Date serviceDate; 
	private int num;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public double getWeight() {
		return weight;
	}
	public void setWeight(double weight) {
		this.weight = weight;
	}
	public Date getServiceDate() {
		return serviceDate;
	}
	public void setServiceDate(Date serviceDate) {
		this.serviceDate = serviceDate;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	@Override
	public String toString() {
		return "Car [id=" + id + ", weight=" + weight + ", serviceDate=" + serviceDate + ", num=" + num + "]";
	} 
	
	@Override
	public Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
	
	
}
